From: Mohamed Abdulla Date: Mon, 23 Mar 2026 20:57:22 +0000 (+0300) Subject: iconGrid: Exclude Lower Out of Bound in IconGridLayout getDropTarget() X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~10^2^2~62 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=c7c31a415170689fd547d45486cecccefd5de3bf;p=gnome-shell.git iconGrid: Exclude Lower Out of Bound in IconGridLayout getDropTarget() Exclude negative page values as well. They are possible in case of dropping on the left-side of an app folder. Closes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/7700 Part-of: --- diff --git a/js/ui/iconGrid.js b/js/ui/iconGrid.js index a67a1ee64..e87225c84 100644 --- a/js/ui/iconGrid.js +++ b/js/ui/iconGrid.js @@ -1042,7 +1042,7 @@ export const IconGridLayout = GObject.registerClass({ : Math.floor(x / this._pageWidth); // Out of bounds - if (page >= this._pages.length) + if (page < 0 || page >= this._pages.length) return [0, 0, DragLocation.INVALID]; if (isRtl && this._orientation === Clutter.Orientation.HORIZONTAL)